import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';
import { Allow, IsNumber, IsString } from 'class-validator';

export class CreateShopDto extends CommonColumnEntity {
  @IsString()
  name: string;
  @IsNumber()
  price: number;
  @IsNumber()
  priceType: number; // 价格类型 1-金币 2-点券
  @IsNumber()
  itemType: number; // 物品类型1-增幅器 2-矛盾 3-金币
  @IsNumber()
  itemNum: number; // 物品数量
  @Allow()
  imageUrl: string;
}
